package com.android.lovingpet.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ikata on 2018/5/21.
 */

public class HostFoster implements Parcelable{
    private String beginTime;

    private String endTime;

    private int fosterBack;

    private int fosterId;

    private int fosterSend;

    private int hostId;

    protected HostFoster(Parcel in) {
        beginTime = in.readString();
        endTime = in.readString();
        fosterBack = in.readInt();
        fosterId = in.readInt();
        fosterSend = in.readInt();
        hostId = in.readInt();
    }

    public static final Creator<HostFoster> CREATOR = new Creator<HostFoster>() {
        @Override
        public HostFoster createFromParcel(Parcel in) {
            return new HostFoster(in);
        }

        @Override
        public HostFoster[] newArray(int size) {
            return new HostFoster[size];
        }
    };

    public void setBeginTime(String beginTime){
        this.beginTime = beginTime;
    }
    public String getBeginTime(){
        return this.beginTime;
    }
    public void setEndTime(String endTime){
        this.endTime = endTime;
    }
    public String getEndTime(){
        return this.endTime;
    }
    public void setFosterBack(int fosterBack){
        this.fosterBack = fosterBack;
    }
    public int getFosterBack(){
        return this.fosterBack;
    }
    public void setFosterId(int fosterId){
        this.fosterId = fosterId;
    }
    public int getFosterId(){
        return this.fosterId;
    }
    public void setFosterSend(int fosterSend){
        this.fosterSend = fosterSend;
    }
    public int getFosterSend(){
        return this.fosterSend;
    }
    public void setHostId(int hostId){
        this.hostId = hostId;
    }
    public int getHostId(){
        return this.hostId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(beginTime);
        dest.writeString(endTime);
        dest.writeInt(fosterBack);
        dest.writeInt(fosterId);
        dest.writeInt(fosterSend);
        dest.writeInt(hostId);
    }
}